// 加解密
import CryptoJS from 'crypto-js'

const secret = 'openfs'

export default {
  // 加密
  encrypt: (payload) => CryptoJS.AES.encrypt(payload, secret).toString(),
  // 解密
  decrypt: (info) => CryptoJS.AES.decrypt(info, secret).toString(CryptoJS.enc.Utf8)
}
